package com.siwei.mes.mapper.laboratory;

import com.siwei.mes.common.dataSource.DataSource;
import com.siwei.mes.common.dataSource.DataSourceNames;
import com.siwei.mes.entity.laboratory.*;
import com.siwei.mes.entity.laboratory.concrete.SampleUcHnt;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;


public interface WTConsignMapper {

    //新增委托信息
    @DataSource(DataSourceNames.LABORATORY)
    public void insertWtConsign(WtConsign wC);


    //修改委托信息
    @DataSource(DataSourceNames.LABORATORY)
    public void updateWtConsignNew(WtConsign wc);


    //更新委托里面的报告编号
    @DataSource(DataSourceNames.LABORATORY)
    void updateWtConsign(@Param("reportId")String reportId,@Param("consignId")String consignId,@Param("examConclusion")String examConclusion);


    //根据任务单查询台账信息
    @DataSource(DataSourceNames.LABORATORY)
    List<WtConsign> findWTConsignListByProduceId(@Param("produceId") String produceId,@Param("itemId") String itemId);


    //根据任务单查询台账信息
    @DataSource(DataSourceNames.LABORATORY)
    List<WtConsign> findWTConsignListByProduceIdAndSampleId(@Param("produceId") String produceId,@Param("sampleId") String sampleId);

    @DataSource(DataSourceNames.LABORATORY)
    List<WtConsign> findWTConsignListBysampleId(@Param("sampleId") String sampleId);


    //查询混凝土最大台账id
    @DataSource(DataSourceNames.LABORATORY)
    WtConsign  findHNTMaxConsignId(@Param("value") String value);

    //查询台账信息
    @DataSource(DataSourceNames.LABORATORY)
    WtConsign findConsignId(@Param("consignId") String consignId);
}
